/**
  ******************************************************************************
  * Copyright(c) 2018-2023 WUHAN LEADOR All rights reserved. 
  * - Filename:    
  * - Author:    Vincent
  * - Version:   V1.0.0
  * - Date:      2019/4/16
  * - Brief:   
  * - FunctionList:
  ******************************************************************************
  * History:
  *   
  *
  * 
  ******************************************************************************
*/

#ifndef __SOCKET_SERVER_UTIL_H__
#define __SOCKET_SERVER_UTIL_H__
/* Includes ------------------------------------------------------------------*/
/*------------------------------------ ----------------------------------------
- @Name:  
- @Discrible:   
- @Param:  
- @Return:   
- @Others: 
------------------------------------ ----------------------------------------
- @Recode    date       version	        author             modify 
-          ------------------------------------------------------------------
-          20190416      V1.0          VINCENT            Create
- 
------------------------------------ ----------------------------------------*/

/* prama define discrible -----------------------------------------------------*/

#define LISTENQ         1024
#define BUFLEN          8192
#define DELIM           "="
#define ZV_CONF_OK      0
#define ZV_CONF_ERROR   100
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* strcuct  discrible --------------------------------------------------------*/
typedef struct 
{
  void *root;
  // char hostbuf[NI_MAXHOST];
  // char postbuf[NI_MAXSERV];

}socket_info_obj_t;

/* prama  discrible ---------------------------------------------------------*/


/* private fucntion  declaration --------------------------------------------*/



/* private fucntion  discrible -----------------------------------------------*/
int open_listenfd(int port);
int make_socket_non_blocking(int fd);
//int read_conf(char *filename, zv_conf_t *cf, char *buf, int len);
#endif /*__SOCKET_SERVER_UTIL_H__*/
/************************ (.h) END OF FILE ************************************/




